// <reference path="../models/SampleListViewItemModel.ts" />
var TypedMVVM;
(function (TypedMVVM) {
    var Samples;
    (function (Samples) {
        var Services;
        (function (Services) {
            var SampleService = (function () {
                function SampleService() {
                }
                SampleService.prototype.getTitle = function () {
                    return "Welcome to TypedMVVM";
                };
                SampleService.prototype.getContent = function () {
                    return "Sample property from the ViewModel";
                };
                SampleService.prototype.getCommandButtonText = function () {
                    return "Show a PopUp!";
                };
                SampleService.prototype.getItemsList = function (dialogService) {
                    return [
                        new Samples.Models.SampleListViewItemModel("Sample Item 1", new TypedMVVM.Common.Commands.RelayCommand(function () { return dialogService.showDialog("Sample Item1 button clicked"); }, function () {
                            return true;
                        })),
                        new Samples.Models.SampleListViewItemModel("Sample Item 2", new TypedMVVM.Common.Commands.RelayCommand(function () { return dialogService.showDialog("Sample Item2 button clicked"); }, function () {
                            return true;
                        })),
                        new Samples.Models.SampleListViewItemModel("Sample Item 2", new TypedMVVM.Common.Commands.RelayCommand(function () { return dialogService.showDialog("Sample Item3 button clicked"); }, function () {
                            return true;
                        }))
                    ];
                };
                return SampleService;
            })();
            Services.SampleService = SampleService;
        })(Services = Samples.Services || (Samples.Services = {}));
    })(Samples = TypedMVVM.Samples || (TypedMVVM.Samples = {}));
})(TypedMVVM || (TypedMVVM = {}));
//# sourceMappingURL=SampleService.js.map